export enum ContentTypeEnum {
    // json
    JSON = 'application/json;charset=UTF-8',
    // form-data
    FORM_DATA = 'multipart/form-data;charset=UTF-8',
    // form-urlencoded
    FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
    // text
    TEXT = 'text/plain;charset=UTF-8',
    // blob
    BLOB = 'application/octet-stream',
    // stream
    STREAM = 'application/stream+json',
    // html
    HTML = 'text/html;charset=UTF-8',
    // xml
    XML = 'application/xml;charset=UTF-8',
    // pdf
    PDF = 'application/pdf;charset=UTF-8',
    // image
    IMAGE = 'image/jpeg;charset=UTF-8',
    // video
    VIDEO = 'video/mp4;charset=UTF-8',
    // audio
    AUDIO = 'audio/mpeg;charset=UTF-8',
}

// 请求方法
export enum RequestMethodEnum {
    GET = 'GET',
    POST = 'POST',
    PUT = 'PUT',
    DELETE = 'DELETE',
}

// 请求状态码
export enum RequestCodeEnum {
    // 成功
    SUCCESS = 1,
    // 错误
    ERROR = 0,
    // 未授权
    UNAUTHORIZED = 401,
    // 禁止访问
    FORBIDDEN = 403,
    // 未找到
    NOT_FOUND = 404,
    // 方法不允许
    METHOD_NOT_ALLOWED = 405,
    // 不可接受
    NOT_ACCEPTABLE = 406,
}